package org.example.mapper;

import org.example.dto.UserDto;
import org.example.po.User;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @author liyishan
 * @date 2023/6/6 15:57
 * @apiNote
 */
@Mapper
public interface UserMapper {
    UserDto userToUserDto(User user);
    //集合
    List<UserDto> userToUserDto(List<User> users);

}
